package demo.dao;

import demo.entity.Nanny;
import demo.entity.vo.NannyJoinCustomer;

import java.sql.SQLException;
import java.util.List;

public interface NannyDao {

    int insertNanny(Nanny nanny) throws SQLException;

    int deleteNannyById(Integer id) throws SQLException;

    int updateNanny(Nanny nanny) throws SQLException;

    Nanny queryNannyById(Integer id) throws SQLException;

    Nanny queryNannyLikeAddress(String address) throws SQLException;

    List<Nanny> queryAllNanny() throws SQLException;

    List<NannyJoinCustomer> queryNannyJoinCustomer() throws SQLException;
}
